/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * CU021.java
 *
 * Created on 03/11/2012, 14:31:31
 */
package victory;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 *
 * @author Loreley
 */
public class CU021 extends javax.swing.JPanel {

    /** Creates new form CU021 */
    public CU021() {
        initComponents();
        boton_exportar.addActionListener(new ActionListener(){
            public void actionPerformed (ActionEvent e){             
                System.out.print("lalalalala 1" + boton_exportar.getText());
        }
        });
        boton_imprimir.addActionListener(new ActionListener(){
            public void actionPerformed (ActionEvent e){             
                System.out.print("lalalalala 1" + boton_imprimir.getText());
        }
        });
        boton_volver.addActionListener(new ActionListener(){
            public void actionPerformed (ActionEvent e){             
                System.out.print("lalalalala 1" + boton_volver.getText());
        }
        });
        
        
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        boton_exportar = new javax.swing.JButton();
        scp_tablaPosiciones = new javax.swing.JScrollPane();
        tabla_tablaPosiciones = new javax.swing.JTable();
        boton_imprimir = new javax.swing.JButton();
        boton_volver = new javax.swing.JButton();
        label_titulo = new javax.swing.JLabel();

        setMinimumSize(new java.awt.Dimension(800, 600));
        setName("Form"); // NOI18N

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(victory.VictoryApp.class).getContext().getResourceMap(CU021.class);
        boton_exportar.setText(resourceMap.getString("boton_exportar.text")); // NOI18N
        boton_exportar.setName("boton_exportar"); // NOI18N
        boton_exportar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                boton_exportarActionPerformed(evt);
            }
        });

        scp_tablaPosiciones.setName("scp_tablaPosiciones"); // NOI18N

        tabla_tablaPosiciones.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null}
            },
            new String [] {
                "Nombre del Equipo", "Puntos", "PG", "PE", "PP", "TF", "TC", "Dif"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tabla_tablaPosiciones.setFillsViewportHeight(true);
        tabla_tablaPosiciones.setMinimumSize(new java.awt.Dimension(800, 600));
        tabla_tablaPosiciones.setName("tabla_tablaPosiciones"); // NOI18N
        scp_tablaPosiciones.setViewportView(tabla_tablaPosiciones);

        boton_imprimir.setText(resourceMap.getString("boton_imprimir.text")); // NOI18N
        boton_imprimir.setName("boton_imprimir"); // NOI18N
        boton_imprimir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                boton_imprimirActionPerformed(evt);
            }
        });

        boton_volver.setText(resourceMap.getString("boton_volver.text")); // NOI18N
        boton_volver.setName("boton_volver"); // NOI18N
        boton_volver.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                boton_volverActionPerformed(evt);
            }
        });

        label_titulo.setFont(new java.awt.Font("Tahoma", 1, 18));
        label_titulo.setText(resourceMap.getString("label_titulo.text")); // NOI18N
        label_titulo.setName("label_titulo"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(59, 59, 59)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(label_titulo)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(boton_exportar)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(boton_imprimir)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(boton_volver))
                        .addComponent(scp_tablaPosiciones, javax.swing.GroupLayout.PREFERRED_SIZE, 700, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(41, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(33, 33, 33)
                .addComponent(label_titulo)
                .addGap(29, 29, 29)
                .addComponent(scp_tablaPosiciones, javax.swing.GroupLayout.PREFERRED_SIZE, 381, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(35, 35, 35)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(boton_volver)
                    .addComponent(boton_exportar)
                    .addComponent(boton_imprimir))
                .addContainerGap(77, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void boton_exportarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_boton_exportarActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_boton_exportarActionPerformed

    private void boton_imprimirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_boton_imprimirActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_boton_imprimirActionPerformed

    private void boton_volverActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_boton_volverActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_boton_volverActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton boton_exportar;
    private javax.swing.JButton boton_imprimir;
    private javax.swing.JButton boton_volver;
    private javax.swing.JLabel label_titulo;
    private javax.swing.JScrollPane scp_tablaPosiciones;
    private javax.swing.JTable tabla_tablaPosiciones;
    // End of variables declaration//GEN-END:variables
}
